<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ include file="/page/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<%@ include file="/adapter/adapter-bootstrap.jsp" %>
<script type="text/javascript">
function  onLoad(){
	if(parseInt("${result}")>0){
		alert("保存成功");
	}else if(parseInt("${result}")<0){
		alert("保存失败");
	}
	
}

function  goBack(){
	window.history.back(-1);
}
</script>
</head>
<body  onload="onLoad()">
<div class="panel panel-default">
   <div class="panel-heading">
      <h3 class="panel-title">
          App模块参数设置
      </h3>
   </div>
   <div class="panel-body">
<form class="form-horizontal" role="form"   action="${ctx}/appModuleParam/updateAppModuleParam"  method="post">
      <div class="form-group">
		<label for="APP_ID" class="col-xs-2 control-label">应用标识</label>
		<div class="col-xs-4">
		<input type="text" class="form-control" id="APP_ID" placeholder="APP_ID"  value="${appModuleParam.appId}"   name="appId"    readonly="readonly" >
	    </div>
	    <label for="andriod_certificate_file" class="col-xs-2 control-label">模块标识</label>
		<div class="col-xs-4">
		<input type="text" class="form-control" id="andriod_certificate_file"  value="${appModuleParam.moduleId}"     name="moduleId"   readonly="readonly"   placeholder="andriod_certificate_file">
	    </div>
	  </div>
<!-- 	  <div class="form-group">
		<label for="andriod_certificate_file" class="col-xs-2 control-label">ANDRIOD证书文件</label>
		<div class="col-xs-10">
		<input type="text" class="form-control" id="andriod_certificate_file" placeholder="andriod_certificate_file">
	    </div>
	  </div> -->    
	  <div class="form-group">
		<label for="app_package_name" class="col-xs-2 control-label">参数代码</label>
		<div class="col-xs-4">
		<input type="text" class="form-control" id="app_package_name"  value="${appModuleParam.paramCode}"   name="paramCode"     placeholder="app_package_name">
	    </div>
	    <label for="app_alias_name" class="col-xs-2 control-label">参数名称</label>
		<div class="col-xs-4">
		<input type="text" class="form-control" id="app_alias_name"  value="${appModuleParam.paramName}"   name="paramName"   placeholder="app_alias_name">
	    </div>
	  </div>
	  <div class="form-group">
		<label for="ios_certificate_file1" class="col-xs-2 control-label">参数值</label>
		<div class="col-xs-4">
		<input type="text" class="form-control" id="ios_certificate_file3"  value="${appModuleParam.paramValue}"   name="paramValue"   placeholder="ios_certificate_file1">
	    </div>
	    <label for="isMustNeed" class="col-xs-2 control-label">是否必输</label>
		<div class="col-xs-4">
	      <select class="form-control" id="isMustNeed" name="isMustNeed">
<%-- 	         <option value="0">${appModuleParam.isMustNeed}</option> --%>
             <c:if test="${appModuleParam.isMustNeed==1}">
                <option value="1">是</option>        
            </c:if>
            <c:if test="${appModuleParam.isMustNeed==2}">
                <option value="2">否</option>        
            </c:if>
	          <option value="1">是</option>
	           <option value="2">否</option>
	      </select>
	    </div>		
	  </div>
	  <div class="form-group  text-center">
         <button type="submit" class="btn btn-default">保存</button>
         <button type="button" class="btn btn-default"   onclick="goBack();">返回</button>
      </div>
</form>

<!-- <form class="form-horizontal" role="form">
                    <fieldset>
                        <legend>配置数据源</legend>
                       <div class="form-group">
                          <label class="col-xs-2 control-label" for="ds_host">主机名</label>
                          <div class="col-xs-4">
                             <input class="form-control" id="ds_host" type="text" placeholder="192.168.1.161"/>
                          </div>
                          <label class="col-xs-2 control-label" for="ds_name">数据库名</label>
                          <div class="col-xs-4">
                             <input class="form-control" id="ds_name" type="text" placeholder="msh"/>
                          </div>
                       </div>
                       <div class="form-group">
                          <label class="col-xs-2 control-label" for="ds_username">用户名</label>
                          <div class="col-xs-4">
                             <input class="form-control" id="ds_username" type="text" placeholder="root"/>
                          </div>
                          <label class="col-xs-2 control-label" for="ds_password">密码</label>
                          <div class="col-xs-4">
                             <input class="form-control" id="ds_password" type="password" placeholder="123456"/>
                          </div>
                       </div>
                    </fieldset>     
                    <fieldset>
                         <legend>选择相关表</legend>
                        <div class="form-group">
                           <label for="disabledSelect"  class="col-xs-2 control-label">表名</label>
                           <div class="col-xs-10">
                              <select id="disabledSelect" class="form-control">
                                 <option>禁止选择</option>
                                 <option>禁止选择</option>
                              </select>
                           </div>
                        </div>
                    </fieldset>
                    
                       <fieldset>
                         <legend>字段名</legend>
                        <div class="form-group">
                           <label for="disabledSelect"  class="col-xs-2 control-label">表名</label>
                           <div class="col-xs-10">
                              <select id="disabledSelect" class="form-control">
                                 <option>禁止选择</option>
                                 <option>禁止选择</option>
                              </select>
                           </div>
                        </div>
                    </fieldset>
                </form>
 -->

   </div>
</div>
<%@ include file="/page/foot.html" %>
